function handles = getMapStr(handles)
% getMapStr
%
% Helper function for map averaging -- figures out which
% type of map to average based on listbox selection
%
% Editing:
% gs may 2005
% -------------------------------------------------------------

contents = get(handles.selectMapType,'String');
mapType = contents{get(handles.selectMapType,'Value')};
switch mapType
    case 'genMean (mean synaptic)'
        mapStr = 'cellA.genMean;';
    case 'genMax (max synaptic)'
        mapStr = 'cellA.genMax;';
    case 'genMin (min synaptic)'
        mapStr = 'cellA.genMin;';
    case 'genOnset (latency to synaptic onset)'
        mapStr = 'cellA.genOnset;';
    case 'genMaxOnset (latency to synaptic peak)'
        mapStr = 'cellA.genMaxOnset;';
    case 'edMin (min direct)'
        mapStr = 'cellA.edMin;';
    case 'edMean (mean direct)'
        mapStr = 'cellA.edMean;';
    case 'edOnset (latency to direct)'
        mapStr = 'cellA.edOnset;';
    case 'eventNumSum (events per pixel)'
        mapStr = 'cellA.eventNumSum;';
    case 'mapAvgMean4th (mean 4th window)'
        mapStr = 'cellA.mapAvgMean4th;';
    otherwise
end

handles.analysis.mapAverager.mapType = mapStr;



% genMean (mean synaptic)
% genMax (max synaptic)
% genMin (min synaptic)
% genOnset (latency to synaptic onset)
% genMaxOnset (latency to synaptic peak)
% edMin (min direct)
% edMean (mean direct)
% edOnset (latency to direct)
% eventNumSum (events per pixel)
